/* Header 组件样式 */
.blog-header {
    background: linear-gradient(135deg, #0071e3 0%, #004e9e 100%);
    color: white;
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logo-link {
    color: white;
    text-decoration: none;
}

.logo-link h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin-right: 2rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    transition: all var(--transition-speed);
}

.search-box:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 0.5rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.nav-item {
    display: inline-block;
}

.nav-link {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all var(--transition-speed);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        display: none;
    }

    .header-content.active {
        display: flex;
    }

    .search-container {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .main-nav {
        margin-top: 1rem;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }
}